﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MengLin.OOP.DesignPattern.MemoPattern.GameRole
{
    /// <summary>
    /// 角色状态存储箱
    /// </summary>
    public class RoleStateMemento
    {
        /// <summary>
        /// Ctor
        /// </summary>
        /// <param name="vit"></param>
        /// <param name="atk"></param>
        /// <param name="def"></param>
        public RoleStateMemento(int vit, int atk, int def)
        {
            _vit = vit;
            _atk = atk;
            _def = def;
        }

        /// <summary>
        /// 生命力
        /// </summary>
        private int _vit;
        public int Vitality
        {
            get { return _vit; }
            set { _vit = value; }
        }

        /// <summary>
        /// 攻击力
        /// </summary>
        private int _atk;
        public int Attack
        {
            get { return _atk; }
            set { _atk = value; }
        }

        /// <summary>
        /// 防御力
        /// </summary>
        private int _def;
        public int Defense
        {
            get { return _def; }
            set { _def = value; }
        }
    }
}
